using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Q.Framework.Extension
{
    static public class ObjectUtility
    {
        static public Boolean In<T>(this T value, List<T> list)
        {
            if (value == null || (list == null || list.Count == 0))
                return false;
            return list.Contains(value);
        }

        static public Boolean NotIn<T>(this T value, List<T> list)
        {
            return !In<T>(value, list);
        }

    }
}